﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hyt.Core.Security;

namespace Hyt.Core.Authentication
{
    /// <summary>
    /// 权限规则
    /// </summary>
    public interface IAuthRule
    {
        /// <summary>
        /// 规则匹配
        /// </summary>
        /// <param name="principal"></param>
        /// <param name="operation"></param>
        /// <returns></returns>
        RuleMatchResult Match(IPrincipal principal, string operation);
    }
}
